package flex.cc.basicinformation.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import flex.cc.basicinformation.entity.ChannelEntity;

/**
 * 权限表
 *
 * @author guozejun
 * @email guozejun@sinosoft.com.cn
 * @date 2021-10-14 22:53:59
 */
@Mapper
@Repository
public interface ChannelDao extends BaseMapper<ChannelEntity> {

	IPage<ChannelEntity> queryChannelPage(Page<ChannelEntity> page,@Param("channe") ChannelEntity channe);

	List<ChannelEntity> selectChanneName(@Param("channe") ChannelEntity channe);

	void insertChannel(@Param("channe")ChannelEntity channe);

	/**
	 *
	 * @author WANGCONG
	 * 2021年10月19日下午3:22:09
	 * @desc 根据map参数查询实体信息
	 */
	List<ChannelEntity> findChannelByParam(@Param("qv") Map<String, String> channelMap);

	List<ChannelEntity> getAllChannelName();


	/**
	 * @description 根据参数查询一个渠道商信息
	 * @param params 请求参数
	 * @return
	 * @author wkangle
	 * @time 2022/02/23 0023 15:58
	 * @exception/throws
	*/
	ChannelEntity getOneByParams(Map<String, Object> params);

	/**
    *
    * @author WANGCONG
    * 2022年4月14日上午10:55:16
    * @desc 渠道商clientId校验唯一性
    */
	int getChannelClientId(Map<String, String> param);

}
